package allaboutmybook;

import java.util.LinkedList;

public class TopicoDeForum 
{
	private String tituloTopicodeForum;
	private String descricaoTopicoDeForum;
	private LinkedList<ComentarioDeForum> comentariosDoTopicoDeForum;
	
	public TopicoDeForum()
	{
		comentariosDoTopicoDeForum = new LinkedList<ComentarioDeForum>();
	}
	
	public String getTituloTopicodeForum() {
		return tituloTopicodeForum;
	}
	public void setTituloTopicodeForum(String tituloTopicodeForum) {
		this.tituloTopicodeForum = tituloTopicodeForum;
	}
	public String getDescricaoTopicoDeForum() {
		return descricaoTopicoDeForum;
	}
	public void setDescricaoTopicoDeForum(String descricaoTopicoDeForum) {
		this.descricaoTopicoDeForum = descricaoTopicoDeForum;
	}
	
	public LinkedList<ComentarioDeForum> getComentariosDoTopicoDeForum()
	{
		return this.comentariosDoTopicoDeForum;
	}
	
	public void adicionarComentarioTopicoDeForum(ComentarioDeForum novoComentario)
	{
		this.comentariosDoTopicoDeForum.add(novoComentario);
	}

}
